package com.flower.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.flower.mapper.IAdminDao;
import com.flower.pojo.Admin;
import com.flower.service.IAdminService;

/**
 * 管理员模块
 */

@Service("adminService")
public class AdminServiceImpl implements IAdminService{

	@Resource(name = "IAdminDao")
	private IAdminDao iAdminDao;
	
	@Override
	public Admin adminToLogin(Admin admin) {
		return iAdminDao.adminToLogin(admin);
	}

	@Override
	public int updateAdmin(Admin admin) {
		return iAdminDao.updateAdmin(admin);
	}

}
